package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.sql.*;


import java.io.Serializable;


/**
 * 操作日志
 * @author XJY
 */
public class Operationlog implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long sysuserId;					    //管理员id
	private String ip;							//登陆ip
	private String address;					    //登陆地址
	private String action;					    //操作描述

    public Operationlog(){

    }

    public Operationlog(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Operationlog(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,Long sysuserId,String ip,String address,String action) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.sysuserId=sysuserId;
       this.ip=ip;
       this.address=address;
       this.action=action;
    }
    
    public Operationlog(Long sysuserId,String ip,String address,String action) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.sysuserId=sysuserId;
        this.ip=ip;
        this.address=address;
        this.action=action;
     }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setSysuserId(Long sysuserId){
		this.sysuserId=sysuserId;
	}

	public Long getSysuserId(){
		return sysuserId;
	}

	public void setIp(String ip){
		this.ip=ip;
	}

	public String getIp(){
		return ip;
	}

	public void setAddress(String address){
		this.address=address;
	}

	public String getAddress(){
		return address;
	}

	public void setAction(String action){
		this.action=action;
	}

	public String getAction(){
		return action;
	}

}
